package com.engine4cloud.tdf.supervision.convert;

import com.engine4cloud.tdf.supervision.dto.create.TerminalIdentityCardCreateDTO;
import com.engine4cloud.tdf.supervision.dto.result.TerminalIdentityCardResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.TerminalIdentityCardUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.JzdxIdentityCardEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface JzdxIdentityCardConvert {
    JzdxIdentityCardConvert INSTANCE = Mappers.getMapper(JzdxIdentityCardConvert.class);

    JzdxIdentityCardEntity create(TerminalIdentityCardUpdateDTO s, Long tenantId);

    JzdxIdentityCardEntity create(TerminalIdentityCardCreateDTO s, Long tenantId);

    JzdxIdentityCardEntity update(TerminalIdentityCardCreateDTO s, Long id);

    JzdxIdentityCardEntity update(TerminalIdentityCardUpdateDTO s, Long id);

    TerminalIdentityCardResultDTO convert(JzdxIdentityCardEntity s);
}
